<?php
header("content-type:text/html;charset=utf8");
$ids = $_GET['ids'];
$con = mysqli_connect('127.0.0.1','root','rootroot','goods');
$res = mysqli_query($con,"select * from goodsinfo where id in($ids)");
;
$arr = [];
while($row = mysqli_fetch_assoc($res))$arr[] =$row;
echo json_encode([
    "meta"=>[
        "status"=>1,
        "msg"=>"数据获取成功"
    ],
    "data"=>$arr
]);
